
INCLUDE_DIRECTORIES(
  ${TulipCoreInclude}
  ${UTF8CppInclude}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
)
LINK_DIRECTORIES(
    ${CMAKE_BINARY_DIR}/bin
)

IF(NOT BUILD_CORE_ONLY)
#INCLUDE_DIRECTORIES(./  ${TulipGUIInclude})
ENDIF()


##----------------------------------------------------------------------------------------------------------------------------
SET(PlanarGraph_SRCS PlanarGraph.cpp)
ADD_LIBRARY(PlanarGraph SHARED ${PlanarGraph_SRCS})
TARGET_LINK_LIBRARIES(PlanarGraph ${LibTulipCoreName})

##------------0----------------------------------------------------------------------------------------------------------------
SET(DotImport_SRCS dotImport.cpp)
ADD_LIBRARY(DotImport SHARED ${DotImport_SRCS})
TARGET_LINK_LIBRARIES(DotImport ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(Grid_SRCS Grid.cpp)
ADD_LIBRARY(Grid SHARED ${Grid_SRCS})
TARGET_LINK_LIBRARIES(Grid ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(GMLImport_SRCS GMLImport.cpp)
ADD_LIBRARY(GMLImport SHARED ${GMLImport_SRCS})
TARGET_LINK_LIBRARIES(GMLImport ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(RandomGraph_SRCS RandomGraph.cpp)
ADD_LIBRARY(RandomGraph SHARED ${RandomGraph_SRCS})
TARGET_LINK_LIBRARIES(RandomGraph ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(RandomSimpleGraph_SRCS RandomSimpleGraph.cpp)
ADD_LIBRARY(RandomSimpleGraph SHARED ${RandomSimpleGraph_SRCS})
TARGET_LINK_LIBRARIES(RandomSimpleGraph ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(AdjacencyMatrixImport_SRCS AdjacencyMatrixImport.cpp)
ADD_LIBRARY(AdjacencyMatrixImport SHARED ${AdjacencyMatrixImport_SRCS})
TARGET_LINK_LIBRARIES(AdjacencyMatrixImport ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(CompleteGraph_SRCS CompleteGraph.cpp)
ADD_LIBRARY(CompleteGraph SHARED ${CompleteGraph_SRCS})
TARGET_LINK_LIBRARIES(CompleteGraph ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(RandomTree_SRCS RandomTree.cpp)
ADD_LIBRARY(RandomTree SHARED ${RandomTree_SRCS})
TARGET_LINK_LIBRARIES(RandomTree ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(RandomTreeGeneral_SRCS RandomTreeGeneral.cpp)
ADD_LIBRARY(RandomTreeGeneral SHARED ${RandomTreeGeneral_SRCS})
TARGET_LINK_LIBRARIES(RandomTreeGeneral ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(CompleteTree_SRCS CompleteTree.cpp)
ADD_LIBRARY(CompleteTree SHARED ${CompleteTree_SRCS})
TARGET_LINK_LIBRARIES(CompleteTree ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(SmallWorldGraph_SRCS SmallWorldGraph.cpp)
ADD_LIBRARY(SmallWorldGraph SHARED ${SmallWorldGraph_SRCS})
TARGET_LINK_LIBRARIES(SmallWorldGraph ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(ImportPajek_SRCS ImportPajek.cpp)
ADD_LIBRARY(ImportPajek SHARED ${ImportPajek_SRCS})
TARGET_LINK_LIBRARIES(ImportPajek ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
SET(ImportUCINET_SRCS ImportUCINET.cpp)
ADD_LIBRARY(ImportUCINET SHARED ${ImportUCINET_SRCS})
TARGET_LINK_LIBRARIES(ImportUCINET ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
ADD_LIBRARY(EmptyGraph SHARED EmptyGraph.cpp)
TARGET_LINK_LIBRARIES(EmptyGraph ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
ADD_LIBRARY(TLPImport SHARED TLPImport.cpp)
TARGET_LINK_LIBRARIES(TLPImport ${LibTulipCoreName})

ADD_LIBRARY(TLPBImport SHARED TLPBImport.cpp)
TARGET_LINK_LIBRARIES(TLPBImport ${LibTulipCoreName})

ADD_LIBRARY(TlpJsonImport SHARED TlpJsonImport.cpp)
TARGET_LINK_LIBRARIES(TlpJsonImport ${LibTulipCoreName})

##----------------------------------------------------------------------------------------------------------------------------
IF(NOT BUILD_CORE_ONLY)
SET(FileSystem_SRCS FileSystem.cpp)
ADD_LIBRARY(FileSystem SHARED ${FileSystem_SRCS})
TARGET_LINK_LIBRARIES(FileSystem ${LibTulipCoreName} ${QT_LIBRARIES})

##----------------------------------------------------------------------------------------------------------------------------
SET(WebImport_SRCS WebImport.cpp)
QTX_WRAP_CPP(WebImport_MOC_SRCS WebImport.h)
ADD_LIBRARY(WebImport SHARED ${WebImport_SRCS} ${WebImport_MOC_SRCS})
TARGET_LINK_LIBRARIES(WebImport ${LibTulipCoreName} ${LibTulipGUIName} ${QT_LIBRARIES})
##----------------------------------------------------------------------------------------------------------------------------
ADD_LIBRARY(GEXFImport SHARED GEXFImport.cpp)
TARGET_LINK_LIBRARIES(GEXFImport ${LibTulipCoreName} ${QT_LIBRARIES})

##----------------------------------------------------------------------------------------------------------------------------
ADD_SUBDIRECTORY(facebook)
ENDIF(NOT BUILD_CORE_ONLY)

SET(LIBRARY_OUTPUT_PATH "${TULIP_PLUGINS_DIR}")